package com.jbp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jbp.model.SkillOrder;
import com.jbp.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 技能订单(SkillOrder)表服务接口
 * @author cc
 * @since 2020-11-28 17:49:31
 */
public interface SkillOrderService extends IService<SkillOrder> {

    SkillOrder create(SkillOrder skillOrder, Integer userId);

    PageUtils buyList(Map<String, Object> params, Integer userId);

    PageUtils sellList(Map<String, Object> params, Integer userId);

    void complete(SkillOrder skillOrder, Integer userId);

    void confirm(SkillOrder skillOrder, Integer userId);

    void start(SkillOrder skillOrder, Integer userId);

    void cancle(SkillOrder skillOrder, Integer userId);

    SkillOrder detail(Integer skillOrderId);

    List<SkillOrder> goingOrder(Integer otherId, Integer userId);

    void pay(SkillOrder skillOrder, Integer userId);

    void timeoutCancel(Integer skillOrderId, Integer origionStatus);
}